package com.dxfx.netty;

import org.springframework.context.annotation.Bean;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Component;

@Component
public class ServerMain {
    public static void main(String[] args){
        ClassPathXmlApplicationContext context=new ClassPathXmlApplicationContext("classpath:applicationContext.xml");
        context.start();
        System.out.println(context.getBean(ServerMain.class).toString());
        System.out.println(context.getBean(UserController.class).toString());
    }
}
